// 整体数据柱状图配置
export const overallDataBarConfig = {
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  xAxis: {
    type: 'category',
    data: ['预算资金', '卡券发放数量', '核销卡券数量', '剩余卡券数量']
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      label: {
        show: true,
        position: 'top', // 在上方显示
      },
      data: [],
      type: 'bar',
      barWidth: '20%',
      itemStyle: {
        // color: '#889bd8'
      }
    }
  ]
}
export const overallDataBarConfig2 = {
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  xAxis: {
    type: 'category',
    data: ['注册用户数', '实名用户数', '认证商户数']
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      label: {
        show: true,
        position: 'top', // 在上方显示
      },
      data: [],
      type: 'bar',
      barWidth: '15%',
      itemStyle: {
        // color: '#889bd8'
      }
    }
  ]
}

// 新增用户折线图配置
export const newUserLineConfig = {
  grid: {
    left: '5%',
    right: '12%',
    bottom: '15%',
    containLabel: true
  },
  legend: {
    icon: 'rect',
    itemWidth: 12,
    itemHeight: 12,
    data: ['注册用户数','实名用户数', '认证商户数']
  },
  tooltip: {
    trigger: 'axis',
  },
  xAxis: {
    type: 'category',
    boundaryGap: false,
    data: []
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      name: '注册用户数',
      data: [],
      type: 'line',
      symbol: 'none',
      smooth: true,
      areaStyle: {}
    },{
      name: '实名用户数',
      data: [],
      type: 'line',
      symbol: 'none',
      smooth: true,
      areaStyle: {}
    },{
      name: '认证商户数',
      data: [],
      type: 'line',
      symbol: 'none',
      smooth: true,
      areaStyle: {}
    }
  ],
  dataZoom: [
    {
      type: 'inside',
      start: 0,
      end: 100
    },
    {
      start: 0,
      end: 100
    }
  ]
}

// 资金趋势折线图配置
export const fundTrendLineConfig = {
  grid: {
    left: '5%',
    right: '12%',
    bottom: '15%',
    containLabel: true
  },
  tooltip: {
    trigger: 'axis',
  },
  xAxis: {
    type: 'category',
    boundaryGap: false,
    data: []
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      data: [],
      type: 'line',
      smooth: true,
      symbol: 'none',
      areaStyle: {}
    }
  ],
  dataZoom: [
    {
      type: 'inside',
      start: 0,
      end: 100
    },
    {
      start: 0,
      end: 100
    }
  ]
}

// 机构信息统计柱状图配置
export const agentInfoBarConfig = {
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  xAxis: {
    type: 'category',
    data: []
  },
  yAxis: {
    type: 'value'
  },
  legend: {
    itemWidth: 12,
    itemHeight: 12,
    data: ['卡券总数','领取数', '核销数', '核销资金']
  },
  series: [
    {
      name: '卡券总数',
      label: {
        show: false,
        position: 'top', // 在上方显示
      },
      data: [],
      type: 'bar'
    },{
      // 领取数
      name: '领取数',
      label: {
        show: false,
        position: 'top', // 在上方显示
      },
      // 随机数据
      data: [],
      type: 'bar'
    },{
      // 领取数
      name: '核销数',
      label: {
        show: false,
        position: 'top', // 在上方显示
      },
      data: [],
      type: 'bar'
    },{
      // 领取数
      name: '核销资金',
      label: {
        show: false,
        position: 'top', // 在上方显示
      },
      data: [],
      type: 'bar'
    }
  ]
}